class BaseScene extends BaseComponent{
	public constructor(index:number) {
		super(index);
		this.top=this.bottom=this.left=this.right=0;
	}
	public addToParent(parent:eui.UILayer=GameLayer.getInstance().sceneLayer){
		parent.addChild(this);
	}
	public removeFromParent(parent:eui.UILayer=GameLayer.getInstance().sceneLayer){
		if(parent.contains(this)){
			parent.removeChild(this);
		}
	}
	/**添加监听 */
	public addListener(){
		super.addListener();
	}
	/**移除监听 */
	public removeListener(){
		super.removeListener();
	}
	
}